import { computed } from 'vue';
import avatarPng from '@/views/me/assets/avatar.jpg';
import useUserStore from '.';

export const getUserStore = () => {
  return useUserStore().$state;
};
export const getAvatar = () => {
  const userStore = getUserStore();
  return userStore.master.avatar.length > 0
    ? userStore.master.avatar
    : avatarPng;
};
